package org.example.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class RegisterDto {
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("账号")
    @Length(min = 6,max = 18,message ="账号长度不能小于6位大于18位" )
    private String account;
    @Length(min = 6,max = 32,message = "密码长度不能小于6位大于32位")
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("三方登录时的uuid")
    private String uuid;
    @ApiModelProperty("电话")
    private String phone;
    @ApiModelProperty("租户id")
    private String talentId;
    @ApiModelProperty("注册类型")
    @NotNull(message = "登录类型不能为空")
    private Integer loginType;
    
}
